package com.googlecode.milib.display.libraryItems.button {
	import flash.text.TextField;

	/**
	 * com.googlecode.milib.display.libraryItems.button.MCButtonThreeFrames
	 * 
	 * Clip should have three frames:
	 *  - 1: no rollover state
	 *  - 2: rollover state	 *  - 3: press state
	 * 
	 * @author Marek Brun @ MindChili
	 */
	public dynamic class MCButtonThreeFrames extends AbstractMCButton {

		public function MCButtonThreeFrames() {
			TextField.prototype;
			gotoAndStop(1);
		}
		
		override protected function doRollOver():void {
			gotoAndStop(2);
		}
		
		override protected function doPress():void {
			gotoAndStop(3);
		}
		
		override protected function doRelease():void {
			gotoAndStop(2);
		}
		
		override protected function doRollOut():void {
			gotoAndStop(1);
		}
		
	}
}
